package com.xjzd.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class App {
    public static void main(String[] args) {
        ConfigurableApplicationContext ac = SpringApplication.run(App.class, args);
        System.out.println(ac.getBean(User.class));
        System.out.println(ac.getBean(User.class));
        System.out.println(ac.getBean(JavaConfig.class));
        System.out.println(ac.getBean(JavaConfig.class));
    }
}
